package com.nw.news.views;

import android.content.Intent;
import android.view.View;

import com.nw.news.R;
import com.nw.news.base.BaseActivity;
import com.nw.news.news.NewsActivity;
import com.nw.news.weather.WeatherActivity;

public class HomeActivity extends BaseActivity {

    @Override
    public int getLayoutId() {
        return R.layout.activity_home;
    }

    @Override
    public void init() {

        findViewById(R.id.button01).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(HomeActivity.this, NewsActivity.class));
            }
        });
        findViewById(R.id.button02).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(HomeActivity.this, WeatherActivity.class));
            }
        });
    }

}